package com.research.web.config.properties;

import com.research.web.entity.ServiceBean;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@PropertySource("classpath:service.properties")
@ConfigurationProperties(prefix = "service")
public class ServiceConfig {
    private List<ServiceBean> list;
}